#include "touch.h"
#include <Arduino.h>

void touch_init(void){
  pinMode(TOUCH_PIN,INPUT);
  attachInterrupt(TOUCH_PIN,touch_callback,RISING);//开启中断
}

//中断回调函数
void touch_callback(void){
  int level = digitalRead(TOUCH_PIN);
}
